﻿using System;
using System.Collections.Generic;
using System.Text;

namespace dotnet2cache.Abstractions.Bus
{
    public interface IMessageSubscriber
    {
        /// <summary>
        /// 订阅消息
        /// </summary>
        /// <param name="topic"></param>
        /// <param name="action"></param>
        void Subscribe(string topic, Action<Message> action);
    }
}
